<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        
        <?php //print_r($groupList); ?>
        
        <form action="" method="POST" id="rowForm">
            <table id="tb" width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
            	<tr><td><?= translate('ACTIVITY_GROUPAREA_AREAID') ?>:</td>
                <td><select name="row[areaid]">
                  	<?php foreach ($areaList as $key=>$value) { ?>
                    <option value="<?=$key ?>"><?=$value ?></option>
                    <?php } ?>
                  </select></td></tr>
                <tr><td><?= translate('ACTIVITY_GROUPAREA_GROUPNAME') ?>:</td>
                  <td><select name="row[groupid]">
                  	<?php foreach ($groupList as $key=>$value) { ?>
                    <option value="<?=$key ?>"><?=$value ?></option>
                    <?php } ?>
                  </select>
                  </td>
                </tr>
                <tr><td></td>
                <td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/> 
                <input type="reset" value="<?= translate('RESET') ?>" id="reset"/>
                </td></tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#area").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
                //$("#"area"").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //$("#icon").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //$("#num0").formValidator({empty: false, defaultvalue: '<?= translate('AREA_FORM_INPUT_OPENTIME') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
            });
        </script>
    </body>
</html>
